package com.sinosoft.vaccinetoai.server.business.chatchainrecord.deletechatchainrecord.controller;

import javax.validation.Valid;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import com.sinosoft.vaccinetoai.server.business.chatchainrecord.deletechatchainrecord.io.DeleteChatChainRecordIO;
import com.sinosoft.vaccinetoai.server.business.chatchainrecord.deletechatchainrecord.vo.DeleteChatChainRecordVO;
import com.sinosoft.vaccinetoai.server.business.chatchainrecord.deletechatchainrecord.service.IDeleteChatChainRecordService;

/**
 * @ClassName: DeleteChatChainRecordController
 * @ClassNameExplain: 
 * @Description: 删除聊天链历史列表接口
 * @author xiazhihao
 * @date 2023年12月20日 19:38
 */
@RestController("DeleteChatChainRecordController")
@RequestMapping("/chatChainRecord")
public class DeleteChatChainRecordController {
	
	@Autowired
	@Qualifier("DeleteChatChainRecordService")
	IDeleteChatChainRecordService deleteChatChainRecordService;
	
	/**
	 * @Title: deleteChatChainRecord
	 * @TitleExplain: 
	 * @Description: 删除聊天链历史列表接口方法
	 * @param deleteChatChainRecordIO 入参
	 * @return DeleteChatChainRecordVO 返参
	 * @version 1.0.3
	 * @author xiazhihao
	 */
	@PostMapping("/remove")
	public DeleteChatChainRecordVO deleteChatChainRecord(@Valid @RequestBody DeleteChatChainRecordIO deleteChatChainRecordIO) throws Exception {
		return deleteChatChainRecordService.deleteChatChainRecord(deleteChatChainRecordIO);
	}
	
}
